function pageLocation(datastr,basepath,paramname){
	if('zhichengfj' == paramname || 'geiyaofs' == paramname || 'xingyins' == paramname){
		window.location = basepath + "search/searchindex.do?"+ paramname + "="+ encodeURIComponent(datastr) + "&qtype="+paramname;
	}else{
		window.location = basepath + "search/searchindex.do?"+ paramname + "="+ encodeURIComponent(datastr);
	}
}

var basePath = '';
/**
 * 导航菜单跳转
 * @param navid
 * @returns
 */
function func4nav(navid,basepathStr){
	basePath = basepathStr;
	if('1' == navid){
		dataSearch();
	}else if('2' == navid){
		dataStat02();
	}else if('3' == navid){
		dataStat03();
	}else if('4' == navid){
		dataStat04();
	}else if('5' == navid){
		dataStat05();
	}else if('6' == navid){
		dataStat06();
	}else if('7' == navid){
		dataStat07();
	}else if('8' == navid){
		dataStat08();
	}
	
}

/**
 * <li><a href="#" class="nav-1">数据检索</a></li>                              
    <li><a href="#" class="nav-2">按职称分级统计</a></li>
    <li><a href="#" class="nav-3">按行医年数统计</a></li>
    <li><a href="#" class="nav-4">按单味药统计</a></li>
    <li><a href="#" class="nav-5">按穴位统计</a></li>
    <li><a href="#" class="nav-6">按给药方式统计</a></li>
    <li><a href="#" class="nav-7">按疾病统计</a></li>
 */

function dataSearch(){
	window.location = basePath + 'search/searchindex.do';
}
function dataStat02(){
	window.location = basePath + 'stat/cftstat.do';
}
function dataStat03(){
	window.location = basePath + 'stat/yopstat.do';
}
function dataStat04(){
	window.location = basePath + 'stat/shstat.do';
}
function dataStat05(){
	window.location = basePath + 'stat/pointstat.do';
}
function dataStat06(){
	window.location = basePath + 'stat/useagestat.do';
}
function dataStat07(){
	window.location = basePath + 'stat/disstat.do';
}
function dataStat08(){
	window.location = basePath + 'index.jsp';
}
function logout(basepath){
	window.location=basepath + "logon.jsp";
}